import { Result, Button } from 'antd';
import { useHistory } from 'react-router-dom';

export default () => {
  const history = useHistory();
  return (
    <Result
      status="success"
      title="已成功创建问卷"
      extra={[
        <Button
          type="primary"
          key="console"
          onClick={() => {
            history.push('/home/templateIncrease');
          }}
        >
          继续创建
        </Button>,
        <Button
          key="buy"
          onClick={() => {
            history.push('/home/questionnaireSettings');
          }}
        >
          返回问卷设置
        </Button>,
      ]}
    />
  );
};
